// import { createSSRApp } from 'vue'
// import pinia from './stores'

// import App from './App.vue'
// export function createApp() {
//   const app = createSSRApp(App)

//   app.use(pinia)
//   return {
//     app,
//   }
// }

import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'

// import * as UniUI from '@dcloudio/uni-ui'

// // 注册所有Uni UI组件
// Object.keys(UniUI).forEach(key => {
//   if (key.startsWith('Uni')) {
//     app.component(key, UniUI[key])
//   }
// })

export function createApp() {
  const app = createSSRApp(App)
  const pinia = createPinia()
  app.use(pinia)
  return {
    app,
  }
}
